.redpacket-index {
  background-color: #f5f5f5;
  overflow: hidden;
  height: 100vh;
}

.redpacket-hd {
  position: relative;
  width: 100vw;
  height: 268px;
  background: linear-gradient(
    179deg,
    rgba(255, 53, 38, 1) 0%,
    rgba(255, 117, 55, 1) 100%
  );

  .rule {
    position: absolute;
    top: 20px;
    right: 18px;
    font-size: 20px;
    color: #fff;
  }
  .redpacket-history {
    position: absolute;
    right: 152px;
    top: 14px;
  }
  .price-cont {
    color: #fff;
    display: flex;
    padding-top: 60px;

    .li {
      width: 50%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;

      .num {
        font-size: 52px;

        &::first-letter {
          font-size: 36px;
        }
      }

      .text {
        font-size: 28px;
        letter-spacing: 2px;
      }
    }
  }

  .tips {
    padding-top: 26px;
    font-size: 24px;
    color: #fff;
    text-align: center;
  }
}
.tab-item {
  height: 88px;
  background-color: #fff;
  display: flex;
  .tab-li {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    &.act {
      .tab-li-text {
        color: #12b3ff;
        &::after {
          display: block;
        }
      }
    }
    .tab-li-text {
      position: relative;
      font-size: 28px;
      font-weight: 500;
      color: rgba(153, 153, 153, 1);
      &::after {
        position: absolute;
        left: 0;
        bottom: -8px;
        content: "";
        width: 100%;
        height: 4px;
        background: rgba(18, 179, 255, 1);
        border-radius: 2px;
        display: none;
      }
    }
  }
}
.redpacket-bd {
  // margin-top: 20px;
  padding-top: 372px;
  position: relative;
  // padding-bottom: 142px;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  .tab-cont {
    background: #fff;
    height: 100%;
    .tab-storetext {
      font-size: 24px;
      color: #12b3ff;
    }
    // overflow-y: scroll;
    .tab-cont-item {
      .grayscale {
        -webkit-filter: grayscale(100%);
        filter: grayscale(100%);
      }
    }
    .scroll-bt-tips {
      font-size: 24px;
      font-weight: 500;
      color: #999999;
      padding: 40px 0 20px;
      text-align: center;
      text-indent: -24px;
    }
    .rbtab-cont-item-li {
      position: relative;
      display: flex;
      padding: 24px;
      border-bottom: 2px solid #e5e5e5;
      overflow: hidden;
      box-sizing: border-box;
      &.grayscale {
        -webkit-filter: grayscale(100%);
        filter: grayscale(100%);
      }
      .tips {
        position: absolute;
        right: 24px;
        top: 24px;
        width: 146px;
        height: 40px;
        background: rgba(245, 39, 8, 0.1);
        border-radius: 6px;
        font-size: 20px;
        color: rgba(255, 59, 48, 1);
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .expireSoon-tips {
        position: absolute;
        left: -40px;
        top: 16px;
        width: 146px;
        height: 40px;
        background: rgba(255, 59, 48, 1);
        border-radius: 6px;
        font-size: 20px;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 999;
        transform: rotate(-45deg);
      }
      .baobei-icon {
        width: 116px;
        height: 44px;
        background: #fefceb;
        opacity: 1;
        border-radius: 12px;
        font-size: 24px;
        font-family: PingFang SC;
        font-weight: 500;
        line-height: 33px;
        color: #ff7026;
        margin-left: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .img {
        width: 104px;
        height: 104px;
        display: block;
        margin-right: 24px;
      }
      .cont {
        .rb-price {
          display: flex;
          width: 100%;
          align-items: center;
          color: #ff3b30;
          font-size: 42px;
          line-height: 56px;
          font-weight: Bold;
          &::first-letter {
            font-size: 20px;
          }
        }
        .text {
          font-size: 20px;
          color: #999;
        }
      }
    }
  }
}

.redpacket-fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
}

.redpacket-fixed-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  padding: 24px;
  box-sizing: border-box;
  .redpacket-uselog-btn {
    width: 100%;
    height: 94px;
    border: 2px solid rgba(18, 179, 255, 1);
    border-radius: 10px;
    box-sizing: border-box;
    color: #12b3ff;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
// .margin-l-24{
//   margin-left: -24px;
// }
